package com.mdd.store.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;

@Data
@ApiModel("门店（店铺）创建参数")
public class StoreCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "门店编码")
    private String storeCode;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "门店名称")
    private String name;

    @ApiModelProperty(value = "门店大图")
    private String bImgUrl;

    @ApiModelProperty(value = "门店小图")
    private String lImgUrl;

    @ApiModelProperty(value = "使用引导图")
    private String guideImgUrl;

    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "状态  0未营业 1已营业")
    private Integer status;

    @NotNull(message = "lon参数缺失")
    @ApiModelProperty(value = "经度")
    private BigDecimal lon;

    @NotNull(message = "lng参数缺失")
    @ApiModelProperty(value = "纬度")
    private BigDecimal lng;

    @ApiModelProperty(value = "评分")
    @DecimalMax(value = "5", message = "评分值不能大于5")
    @DecimalMin(value = "0", message = "评分值不能小于0")
    private Double score;

    @ApiModelProperty(value = "标签")
    private String label;

    @NotNull(message = "请输入类别")
    @ApiModelProperty(value = "类别")
    private Long type;

    @NotNull(message = "请输入门店联系方式")
    @ApiModelProperty(value = "门店联系方式")
    private String phone;

    @NotNull(message = "请输入服务开放时间")
    @ApiModelProperty(value = "服务开放时间")
    private Time openTime;

    @NotNull(message = "请输入服务结束时间")
    @ApiModelProperty(value = "服务结束时间")
    private Time closeTime;


    @NotNull(message = "请输入省")
    @ApiModelProperty(value = "省")
    private Long province;

    @NotNull(message = "请输入市")
    @ApiModelProperty(value = "市")
    private Long city;

    @NotNull(message = "请输入县")
    @ApiModelProperty(value = "县")
    private Long county;

    @ApiModelProperty(value = "备注")
    private String content;

    @NotNull(message = "请输入门店地址")
    @ApiModelProperty(value = "门店地址")
    private String address;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "季售")
    private Integer salesVolume;

    @ApiModelProperty(value = "门市价格")
    private BigDecimal retailPrice;

    @ApiModelProperty(value = "现价格")
    private BigDecimal currentPrice;

    @ApiModelProperty(value = "人均价格")
    private BigDecimal averagePrice;

    @ApiModelProperty(value = "门店管理员账号")
    private String adminUsername;

    @NotNull(message = "adminPassword参数缺失")
    @ApiModelProperty(value = "门店管理员密码")
    private String adminPassword;
}
